<script setup lang="ts">
import { onMounted } from 'vue';
import { useAnswerStore } from './stores/modules/answer';
const answerStore = useAnswerStore();
onMounted(() => {
  // 初始化把答题的记录清空
  answerStore.clearAnswerData();
})
</script>

<template>
  <!-- <router-view></router-view> -->
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<style scoped lang="scss"></style>
